package cate.common.table.throne.sacrifice;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.table.d.GDHero;

public class KingSacrificeItemRow extends ERow {

	public int itemId;

	public byte job;

	public String rwdStr;

	private String cost;

	private String pCost;

	public int exp;



	@Override
	public void parse(XSSFRowWrap xrw) {
		super.parse(xrw);
		this.id = xrw.getInteger("ID", -1);
		this.itemId = xrw.getInteger("ID", 0);
		this.job = xrw.getByte("职业", GDHero.Job.NULL);
		this.rwdStr = xrw.getString("商品内容");
		this.cost = xrw.getString("基础价格");
		this.pCost = xrw.getString("折扣价格");
		this.exp = xrw.getInteger("经验",0);

	}

	public String getCost(boolean hasPrivilege) {
		if (hasPrivilege) {
			return pCost;
		} else {
			return cost;
		}
	}


}
